import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axiosApi from "@/api/axios.js";
import moment from "moment";
import VueQrcodeReader from 'vue-qrcode-reader';
// import 'vue-qrcode-reader/dist/vue-qrcode-reader.css';



Vue.component('vue-qrcode-reader', VueQrcodeReader);
Vue.config.productionTip = false
Vue.prototype.moment = moment;

Vue.use(ElementUI)
Vue.use(axiosApi);
Vue.filter("dateFormat", function(dateStr, pattern = "YYYY-MM-DD HH:mm:ss") {
  return moment(dateStr).format(pattern);
});

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
